﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Disk_Pizza_Admin
{
    public partial class relCaixaPorData : Form
    {
        public relCaixaPorData()
        {
            InitializeComponent();
        }

        private void relCaixaPorData_Load(object sender, EventArgs e)
        {

        }

        private void btnRelVenda_Click(object sender, EventArgs e)
        {
            DateTime dtinicio = Convert.ToDateTime(txtDataInicio.Text);
            DateTime dtfim = Convert.ToDateTime(txtDataFim.Text);
            
            this.tblPedidoTableAdapter.Fill(this.dsRelVendas.tblPedido,dtinicio,dtfim);

            this.reportViewer1.RefreshReport();
        }
    }
}
